package org.jeecg.modules.act.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.act.entity.Activity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.act.vo.ActUserVo;
import org.jeecg.modules.act.vo.ActivityVo;

import java.util.List;
import java.util.Map;

/**
 * @Description: 活动表
 * @Author: jeecg-boot
 * @Date: 2019-09-04
 * @Version: V1.0
 */
public interface ActivityMapper extends BaseMapper<Activity> {

    Map<String, Object> findDetailByActId(@Param("actId") String actId);

    List<ActUserVo> findJoinActUserList(@Param("actId") String actId, @Param("orderType") Integer orderType);

    IPage<ActivityVo> findByPage(IPage<ActivityVo> page, @Param("userId") String userId);

    IPage<ActivityVo> findmyJoinRecordByPage(IPage<ActivityVo> page, @Param("userId") String userId);

    Activity selectByActId(@Param("actId") String actId);

    IPage<ActivityVo> allActivities(Page<ActivityVo> page);
}
